package com.awifi.com.thread.method;

/**
 * @description: ToDo
 * @author: marin
 * @time: 2020/6/28 22:21
 */
public class SyncMethod implements Runnable{

    @Override
    public void run() {
        init();
    }
    public static synchronized void init(){
        for (int i=0;i<20;i++){
            System.out.println("hello"+i);
        }
    }
}
